Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S snf-ganeti
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • itmineduitminedu
  • snf-ganeti
  • Repository
  • snf-ganeti
  • htools
  • Ganeti
  • HTools
  • Program
  • Hscan.hs
Find file BlameHistoryPermalink
  • Iustin Pop's avatar
    Parse options in htools.hs, not in each program · 21839f47
    Iustin Pop authored Jan 15, 2012
    
    
    This patch moves the call to getArgs/parseOpts into htools.hs, as
    opposed to the current situation where htools.hs only calls the main
    file of each program, which in turn calls these two functions.
    
    By doing it only once we remove some duplicate code and we also export
    each program's options, which allows us to test some common behaviour
    in the future.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
    21839f47