You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the args core library and provide the necessary C extension API in the language's source to access command-line arguments from Chaos C extensions.
importargsprintargs.count()# Should print 7printargs.index(0)# Should print 'dev.kaos'printargs.index(1)# Should print 'arg1'printargs.index(2)# Should print 'arg2'printargs.index(3)# Should print '-s'printargs.index(4)# Should print 'short value'printargs.index(5)# Should print '--long'printargs.index(6)# Should print 'long value'printargs.file()# Should print 'dev.kaos'printargs.short('s')# Should print 'short value'printargs.long('long')# Should print 'long value'
The text was updated successfully, but these errors were encountered:
Implement the
args
core library and provide the necessary C extension API in the language's source to access command-line arguments from Chaos C extensions.For a command like this:
the library provide these functionality:
The text was updated successfully, but these errors were encountered: