Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • UW-Glance UW-Glance
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eva Schiffer
  • UW-GlanceUW-Glance
  • Issues
  • #15

Move from optparse to argparse

argparse is the way of the future. Also, it has support for doing much more clever things, like proper support for subcommands.

Ultimately we'll want to do input checks, subcommands, and more, but for step 1: just get it working with argparse.

Needed fixes for now

  • fix ordering issue with positional and non-positional arguments

For the future

  • #26 (closed) unify argument parsing logic into one place
  • #27 (closed) Move "Available commands in Glance" to argparse epilog
  • #28 (closed) Make the command a first tier argument
  • try to transition our commands to be actual sub-parsers
  • reevaluate what we can do with input checks
Edited Aug 24, 2021 by Eva Schiffer
Assignee
Assign to
Time tracking