Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 278 Bytes

File metadata and controls

15 lines (12 loc) · 278 Bytes

os Module

Process-level helpers.

Functions

  • args() -> [str]: Returns command-line arguments (excluding the executable).
  • exit(code int): Exits the process with code.

Example

load os
if len(os.args()) == 0:
    out("missing arg")
    os.exit(1)